public class Circular {
    double r;
    static double pi = 3.14;

    public void circular(double r) {
        this.r = r;
    }

    public double area() {
        return r * r * pi;
    }

    public double perimeter() {
        return 2 * r * pi;
    }
}